FROM rabbitmq:3.7.9-management
LABEL maintainer="runfa.li"

# 设置变量
ENV RABBITMQ_MNESIA_BASE=/data/mnesia
ENV RABBITMQ_LOG_BASE=/data/log

COPY rabbitmq_delayed_message_exchange-3.8.0.ez /plugins/rabbitmq_delayed_message_exchange.ez
COPY enabled_plugins /etc/rabbitmq/enabled_plugins
COPY rabbitmq.conf /etc/rabbitmq/rabbitmq.conf

# 创建数据目录
RUN mkdir -p /data/mnesia /data/log